﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Style TargetType="{x:Type Viewport3D}">
        <Setter Property="ClipToBounds"
                Value="False" />
        <Setter Property="IsHitTestVisible"
                Value="True" />
        <!--<Setter Property="RenderOptions.EdgeMode"
                Value="Aliased" />-->
    </Style>

    <Style TargetType="{x:Type ToolTipService}">
        <Setter Property="InitialShowDelay"
                Value="0" />
        <Setter Property="BetweenShowDelay"
                Value="0" />

    </Style>

    <Style TargetType="{x:Type ToolTip}">
        <Setter Property="Placement"
                Value="MousePoint" />
        <Setter Property="HorizontalOffset"
                Value="-18" />
        <Setter Property="VerticalOffset"
                Value="-52" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid Name="Border"
                          Background="Transparent"
                          Width="{TemplateBinding Width}">
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition Height="14px" />
                        </Grid.RowDefinitions>
                        <Path Grid.Row="1"
                              Opacity="0.9"
                              Fill="#FFBBBBBB"
                              Stretch="Fill"
                              HorizontalAlignment="Left"
                              Margin="10,0,0,0"
                              Width="15.692"
                              Height="14.81"
                              Data="M130,122 L138,136 144,122" />
                        <Rectangle Grid.Row="0"
                                   Opacity="0.9"
                                   RadiusX="7.5"
                                   RadiusY="7.5">
                            <Rectangle.Fill>
                                <LinearGradientBrush StartPoint="0.5,-0.5"
                                                     EndPoint="0.547,0.913">
                                    <GradientStop Color="#FFEEEEEE"
                                                  Offset="0" />
                                    <GradientStop Color="#FFBBBBBB"
                                                  Offset="1" />
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>

                        <ContentPresenter Grid.Row="0"
                                          Margin="10,0,10,0"
                                          Content="{TemplateBinding Property=ContentControl.Content}"
                                          HorizontalAlignment="Center"
                                          VerticalAlignment="Center"
                                          TextBlock.Foreground="Black"
                                          TextBlock.FontSize="30" />
                    </Grid>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Rectangle}"
           x:Key="Rectangle_Panel">
        <Setter Property="Stroke"
                Value="{DynamicResource LightBorderBrush}" />
        <Setter Property="Margin"
                Value="3,3,3,3" />
        <Setter Property="RadiusX"
                Value="10" />
        <Setter Property="RadiusY"
                Value="10" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
        <Setter Property="VerticalAlignment"
                Value="Stretch" />
        <Setter Property="Width"
                Value="Auto" />
        <Setter Property="Height"
                Value="Auto" />
        <Setter Property="Opacity"
                Value="0.7" />
        <Setter Property="Fill">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0"
                                     EndPoint="0,1">
                    <GradientStop Color="#FFE8E8E8"
                                  Offset="0" />
                    <GradientStop Color="#FFE4E4E4"
                                  Offset="0.2" />
                    <GradientStop Color="#FFbdbdbd"
                                  Offset="1" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Label}" x:Key="Control_Legenda">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Label}">
                    <StackPanel Margin="0,0,0,5"
                                Orientation="Horizontal">
                        <Rectangle Margin="10,0,10,0"
                                   StrokeThickness="1"
                                   Stroke="Gray"
                                   RadiusX="2"
                                   RadiusY="2"
                                   Fill="{TemplateBinding Background}"
                                   Width="20"
                                   Height="20" />
                        <ContentPresenter Content="{TemplateBinding Content}"  VerticalAlignment="Center"/>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>